﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000FB5 RID: 4021
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueModifierUpdateNotify : IMessage<RogueModifierUpdateNotify>, IMessage, IEquatable<RogueModifierUpdateNotify>, IDeepCloneable<RogueModifierUpdateNotify>, IBufferMessage
	{
		// Token: 0x170032E9 RID: 13033
		// (get) Token: 0x0600B3FD RID: 46077 RVA: 0x001E5F35 File Offset: 0x001E4135
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueModifierUpdateNotify> Parser
		{
			get
			{
				return RogueModifierUpdateNotify._parser;
			}
		}

		// Token: 0x170032EA RID: 13034
		// (get) Token: 0x0600B3FE RID: 46078 RVA: 0x001E5F3C File Offset: 0x001E413C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueModifierUpdateNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170032EB RID: 13035
		// (get) Token: 0x0600B3FF RID: 46079 RVA: 0x001E5F4E File Offset: 0x001E414E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueModifierUpdateNotify.Descriptor;
			}
		}

		// Token: 0x0600B400 RID: 46080 RVA: 0x001E5F55 File Offset: 0x001E4155
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueModifierUpdateNotify()
		{
		}

		// Token: 0x0600B401 RID: 46081 RVA: 0x001E5F5D File Offset: 0x001E415D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueModifierUpdateNotify(RogueModifierUpdateNotify other) : this()
		{
			this.modifier_ = ((other.modifier_ != null) ? other.modifier_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B402 RID: 46082 RVA: 0x001E5F92 File Offset: 0x001E4192
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueModifierUpdateNotify Clone()
		{
			return new RogueModifierUpdateNotify(this);
		}

		// Token: 0x170032EC RID: 13036
		// (get) Token: 0x0600B403 RID: 46083 RVA: 0x001E5F9A File Offset: 0x001E419A
		// (set) Token: 0x0600B404 RID: 46084 RVA: 0x001E5FA2 File Offset: 0x001E41A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueModifier Modifier
		{
			get
			{
				return this.modifier_;
			}
			set
			{
				this.modifier_ = value;
			}
		}

		// Token: 0x0600B405 RID: 46085 RVA: 0x001E5FAB File Offset: 0x001E41AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueModifierUpdateNotify);
		}

		// Token: 0x0600B406 RID: 46086 RVA: 0x001E5FB9 File Offset: 0x001E41B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueModifierUpdateNotify other)
		{
			return other != null && (other == this || (object.Equals(this.Modifier, other.Modifier) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B407 RID: 46087 RVA: 0x001E5FEC File Offset: 0x001E41EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.modifier_ != null)
			{
				num ^= this.Modifier.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B408 RID: 46088 RVA: 0x001E6028 File Offset: 0x001E4228
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B409 RID: 46089 RVA: 0x001E6030 File Offset: 0x001E4230
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B40A RID: 46090 RVA: 0x001E6039 File Offset: 0x001E4239
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.modifier_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.Modifier);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B40B RID: 46091 RVA: 0x001E606C File Offset: 0x001E426C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.modifier_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Modifier);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B40C RID: 46092 RVA: 0x001E60AC File Offset: 0x001E42AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueModifierUpdateNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.modifier_ != null)
			{
				if (this.modifier_ == null)
				{
					this.Modifier = new RogueModifier();
				}
				this.Modifier.MergeFrom(other.Modifier);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B40D RID: 46093 RVA: 0x001E6100 File Offset: 0x001E4300
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B40E RID: 46094 RVA: 0x001E610C File Offset: 0x001E430C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.modifier_ == null)
					{
						this.Modifier = new RogueModifier();
					}
					input.ReadMessage(this.Modifier);
				}
			}
		}

		// Token: 0x040048C5 RID: 18629
		private static readonly MessageParser<RogueModifierUpdateNotify> _parser = new MessageParser<RogueModifierUpdateNotify>(() => new RogueModifierUpdateNotify());

		// Token: 0x040048C6 RID: 18630
		private UnknownFieldSet _unknownFields;

		// Token: 0x040048C7 RID: 18631
		public const int ModifierFieldNumber = 7;

		// Token: 0x040048C8 RID: 18632
		private RogueModifier modifier_;
	}
}
